From: Carlos Soriano Sánchez Date: Thu, 15 Nov 2012 18:31:16 +0000 (+0100) Subject: MessageTray: clean-up chat timestamps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5332 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=50fbf9982efb7138e956d1893fe4f1e2bcc09bd0;p=gnome-shell.git MessageTray: clean-up chat timestamps Change the text for design reasons and correct some English issues in the timestamp string. https://bugzilla.gnome.org/show_bug.cgi?id=680989 --- diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index b3a303ab0..8ebcd2a41 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -926,26 +926,24 @@ const ChatNotification = new Lang.Class({ } // Show the word "Yesterday" and time if date is on yesterday else if(daysAgo <2){ - /* Translators: this is a time format string followed by the word "Yesterday". i.e. "14:30 on Yesterday"*/ + /* Translators: this is the word "Yesterday" followed by a time string. i.e. "Yesterday, 14:30"*/ // xgettext:no-c-format - format = _("%H:%M on Yesterday"); + format = _("Yesterday, %H:%M"); } // Show a week day and time if date is in the last week else if (daysAgo < 7) { - /* Translators: this is a time format string followed by a week day name. i.e. "14:30 on Monday*/ + /* Translators: this is the week day name followed by a time string. i.e. "Monday, 14:30*/ // xgettext:no-c-format - format = _("%H:%M on %A"); + format = _("%A, %H:%M"); } else if (date.getYear() == now.getYear()) { - /* Translators: this is a time format in the style of "14:30 on Wednesday, May 25", - shown when you get a chat message in the same year */ + /* Translators: this is the month name and day number followed by a time string. i.e. "May 25, 14:30"*/ // xgettext:no-c-format - format = _("%H:%M on %A, %B %d"); + format = _("%B %d, %H:%M"); } else { - /* Translators: this is a time format in the style of "14:30 on Wednesday, May 25, 2012", - shown when you get a chat message in a different year */ + /* Translators: this is the month name, day number, year number followed by a time string. i.e. "May 25 2012, 14:30"*/ // xgettext:no-c-format - format = _("%H:%M on %A, %B %d, %Y"); + format = _("%B %d %Y, %H:%M "); } return date.toLocaleFormat(format);